package com.sz.model;

import org.springframework.data.annotation.Id;
import tk.mybatis.mapper.annotation.KeySql;

public class QuestionAnswer {
    public QuestionAnswer() {
    }

    public QuestionAnswer(Integer pkQid, String ukTitle, Integer kid, String reply) {
        this.pkQid = pkQid;
        this.ukTitle = ukTitle;
        this.kid = kid;
        this.reply = reply;
    }

    @Override
    public String toString() {
        return "QuestionAnswer{" +
                "pkQid=" + pkQid +
                ", ukTitle='" + ukTitle + '\'' +
                ", kid=" + kid +
                ", reply='" + reply + '\'' +
                '}';
    }

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column question_answer.pk_qid
     *
     * @mbggenerated
     */
    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer pkQid;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column question_answer.uk_title
     *
     * @mbggenerated
     */
    private String ukTitle;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column question_answer.kid
     *
     * @mbggenerated
     */
    private Integer kid;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column question_answer.reply
     *
     * @mbggenerated
     */
    private String reply;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column question_answer.pk_qid
     *
     * @return the value of question_answer.pk_qid
     *
     * @mbggenerated
     */
    public Integer getPkQid() {
        return pkQid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column question_answer.pk_qid
     *
     * @param pkQid the value for question_answer.pk_qid
     *
     * @mbggenerated
     */
    public void setPkQid(Integer pkQid) {
        this.pkQid = pkQid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column question_answer.uk_title
     *
     * @return the value of question_answer.uk_title
     *
     * @mbggenerated
     */
    public String getUkTitle() {
        return ukTitle;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column question_answer.uk_title
     *
     * @param ukTitle the value for question_answer.uk_title
     *
     * @mbggenerated
     */
    public void setUkTitle(String ukTitle) {
        this.ukTitle = ukTitle == null ? null : ukTitle.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column question_answer.kid
     *
     * @return the value of question_answer.kid
     *
     * @mbggenerated
     */
    public Integer getKid() {
        return kid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column question_answer.kid
     *
     * @param kid the value for question_answer.kid
     *
     * @mbggenerated
     */
    public void setKid(Integer kid) {
        this.kid = kid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column question_answer.reply
     *
     * @return the value of question_answer.reply
     *
     * @mbggenerated
     */
    public String getReply() {
        return reply;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column question_answer.reply
     *
     * @param reply the value for question_answer.reply
     *
     * @mbggenerated
     */
    public void setReply(String reply) {
        this.reply = reply == null ? null : reply.trim();
    }
}